<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>销售订单</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <!-- 顶部统计 -->
    <el-row :gutter="12">
      <el-col :span="8">
        <el-card shadow="always">
          <span style="font-weight:700">当前查询：</span>全部订单
        </el-card>
      </el-col>
      <el-col :span="8">
        <el-card shadow="always">
          <span style="font-weight:700">未处理订单数：</span>10
        </el-card>
      </el-col>
      <el-col :span="8">
        <el-card shadow="always">
          <span style="font-weight:700">销售金额：</span>1000
        </el-card>
      </el-col>
    </el-row>
    <el-form :inline="true" :form="form" style="margin-top: 10px;">
      <!-- 身份切换 -->
      <el-form-item>
        <!--   -->
        <el-radio @change="RadioChange" v-model="form.Order_Type" label="0">用户</el-radio>
        <el-radio @change="RadioChange" v-model="form.Order_Type" label="1">经销商</el-radio>
      </el-form-item>
      <!-- 筛选器 -->
      <el-form-item label="商品名称:">
        <el-input v-model="form.Article_Name" placeholder="请输入商品名" />
      </el-form-item>
      <el-form-item v-if="form.Order_Type=='0'" label="时间范围:">
        <div class="block">
          <el-date-picker v-model="MyDate" value-format="yyyy-MM-dd HH:mm:ss" type="daterange" range-separator="至"
            start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptionsTwo">
          </el-date-picker>
        </div>
      </el-form-item>
      <el-form-item v-if="form.Order_Type=='1'" label="经销商:">
        <el-select @change="SelectDistributors" v-model="form.Dealer_SerialNumber" clearable placeholder="请选择经销商">
          <el-option v-for="item in distributors" :key="item.Dealer_SerialNumber" :label="item.Dealer_Name"
            :value="item.Dealer_SerialNumber">
          </el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSerach">查询</el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="Add(0)">添加经销商销售订单</el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="Add(1)">添加供货店铺销售订单</el-button>
      </el-form-item>
      <!-- <el-form-item>
        <el-button v-if="form.Order_Type=='0'" type="primary" @click="dialogVisible1 = true">导入</el-button>
      </el-form-item> -->
      <el-form-item>
        <el-button v-if="form.Order_Type=='0'" type="primary" @click="onExcel">导出</el-button>
      </el-form-item>
      <!-- <el-form-item>
        <el-button v-if="form.Order_Type=='0'" type="primary" @click="ribao">发布销售日报</el-button>
      </el-form-item> -->
      <el-form-item>
        <el-button v-if="form.Order_Type=='0'" type="primary" @click="Reconciliation">对账</el-button>
      </el-form-item>
      <!-- <el-form-item>
        <el-button v-if="form.Order_Type=='0'" type="primary" @click="ribao"></el-button>
      </el-form-item> -->
      <el-form-item>
        <el-button v-if="form.Order_Type=='1'" type="primary" @click="onExcel">差异</el-button>
      </el-form-item>
    </el-form>

    <el-tabs type="card" v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="全部" name=" "></el-tab-pane>
      <el-tab-pane label="未付款" name="0"></el-tab-pane>
      <el-tab-pane label="已付款" name="1"></el-tab-pane>
      <el-tab-pane label="待发货" name="9"></el-tab-pane>
      <el-tab-pane label="发货中" name="6"></el-tab-pane>
      <el-tab-pane label="已送达" name="7"></el-tab-pane>
      <el-tab-pane label="已退款" name="4"></el-tab-pane>
    </el-tabs>
    <div style="display: flex;width: 100%;">
      <div style="flex-shrink: 0; width: 15%; border: 1px solid rgb(228, 231, 237); margin-right: 10px;">
        <h3 style="margin-left:10px;">销售点/经销商筛选</h3>
        <el-tree :data="menuList" ref="tree" show-checkbox node-key="value" check-on-click-node default-expand-all
          :expand-on-click-node="false" @check-change="handleCheckChange">
          <template v-slot="{data}">
            <span >{{data.label}}</span>
          </template>
        </el-tree>
      </div>
      <div style="width: 84.5%;">
        <!-- <div style="width: 100px; height: 100%; display: flex; flex-direction: column; flex-shrink: 0;"> -->
        <!-- <el-tabs tab-position="left" @tab-click="handleSupplier">
            <el-tab-pane :label="item.Supplier_Name" :name="item.Supplier_SerialNumber" v-for="(item,index) in supplier"
              :key="index"></el-tab-pane>
          </el-tabs> -->
        <!-- </div> -->
        <!-- <div style="width: 90%;"> -->
        <!-- 用户 -->
        <el-table v-if="form.Order_Type=='0'" v-loading="loading" :data="tableData" id="out-table" stripe border height="calc(100vh - 280px)"
          style="width: 100% ;" @expand-change="handleExpandChange"  @selection-change="handleSelectionChange">
          <el-table-column type="selection" width="40"></el-table-column>
          <el-table-column type="expand" label="明细" width="60">
            <template slot-scope="scope">
              <el-table :data="scope.row.Children.sales_order_detail" style="margin: 5px auto 0; width: 98%;" border>
                <el-table-column label="序号" width="50" type="index"></el-table-column>
                <el-table-column label="操作" width="100">
                  <template v-slot="{row}">
                    <el-button v-if="!row.Article_Name" size="small" type="primary" @click="MaintenanceArticle(row)">更新商品</el-button>
                    <el-button v-else-if="!row.Sales_Unit_Price" size="small" type="primary" @click="MaintenancePrice(row)">更新价格</el-button>
                    <el-dropdown v-else  size="small" trigger="click">
                      <el-button size="small" type="primary">
                        更多<i class="el-icon-arrow-down el-icon--right"></i>
                      </el-button>
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item style="margin-bottom: 5px;">
                          <!-- :disabled="row.Row_Status!='1'&&!row.Dealer_SerialNumber||row.Row_Status!='0'&&row.Dealer_SerialNumber"  -->
                          <el-button size="small" 
                            :type="row.Row_Status == '1'&&row.Store_SerialNumber.charAt(0)=='E'||row.Row_Status=='0'&&row.Store_SerialNumber.charAt(0)!='E'?'success':'info'"
                            @click="DistributionSupplier(row)">{{row.Sign=='无货货主'?'分配供应商':'通知发货'}}</el-button>
                        </el-dropdown-item>
                        <el-dropdown-item style="margin-bottom: 5px;">
                          <el-button v-if="row.Sales_Order_Type=='0'" :type="row.Row_Status==1&&row.Refund_Type==0 || row.Row_Status==6&&row.Refund_Type==0||row.Row_Status==7&&row.Refund_Type==0||row.Row_Status==9&&row.Refund_Type==0?'primary':'info'" size="small"
                            :disabled="row.Row_Status!=1&&row.Row_Status!=6&&row.Row_Status!=7&&row.Row_Status!=9||row.Refund_Type==1"
                            @click="refund(row.Sales_Order_SerialNumber)">申请退款</el-button>
                        </el-dropdown-item>
                        <el-dropdown-item style="margin-bottom: 5px;">
                          <el-button type="success" size="small" v-if="row.Row_Status=='4'&&row.Delivery_Status=='1'&&row.Sign=='有货货主'" @click="ReturnWarehousing(row.Delivery_Order_SerialNumber,'2')">退货入库</el-button>
                        </el-dropdown-item>
                        <el-dropdown-item style="margin-bottom: 5px;">
                          <el-button type="success" size="small" v-if="row.Supplier_Enterprise&&row.Row_Status==9&&row.Sales_Address!= '用户自提'&&row.Sign=='无货货主'"
                            @click="onShipped(row)">发货</el-button>
                        </el-dropdown-item>
                        <el-dropdown-item style="margin-bottom: 5px;">
                          <el-button type="success" size="small" v-if="row.Sales_Address != '用户自提'&&row.Row_Status==6&&row.Sign=='无货货主'"
                            @click="delivered(row)">已送达</el-button>
                        </el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </el-table-column>
                <el-table-column prop="Sales_Order_Detail_SerialNumber" min-width="150" label="明细流水号"></el-table-column>
                <el-table-column prop="Article_Name" label="商品名称" min-width="100">
                  <template v-slot="{row}">
                    <span :style="row.Article_Name?'':'color: red;'">{{row.Article_Name?row.Article_Name:row.Article_SerialNumber+'(异常单未导入商品)'}}</span>
                  </template>
                </el-table-column>
                <el-table-column prop="Picture_URL" label="商品图片" min-width="100">
                  <template v-slot="{row}">
                    <div v-if="row.Picture_URL != '/'&&row.Picture_URL != '/'">
                      <el-image style="width: 100px; height: 100px; border-radius: 9px;cursor: pointer;" fit="fill"
                        :src="DomainIMG + row.Picture_URL"></el-image>
                    </div>
                    <div v-else>暂无封面</div>
                  </template>
                </el-table-column>
                <el-table-column prop="Specifications_Name" label="规格名称" min-width="100"></el-table-column>
                <el-table-column prop="Row_Status" label="订单状态" width="90">
                  <template v-slot="{ row }">
                    <div v-if="form.Order_Type=='0'">
                      <el-tag :type="row.Refund_Type==0&&(row.Row_Status==1||row.Row_Status==6||row.Row_Status==7||row.Row_Status==8)?'success'
                                :row.Refund_Type==0&&row.Row_Status==0||row.Refund_Type==0&&row.Row_Status==9?''
                                :row.Refund_Type==0&&row.Row_Status==4?'info'
                                :row.Refund_Type==1?'warning':'danger'" size="small">
                        {{Row_Name(row.Refund_Type,row.Row_Status)}}
                      </el-tag>
                      <el-tag v-if="row.Supplier_Name" type="success">{{row.Supplier_Name}}</el-tag>
                    </div>
                  </template>
                </el-table-column>
                <el-table-column prop="Sales_Order_Type" align="center" label="类型" width="80">
                  <template v-slot="{ row }">
                    <el-tag :type="row.Sales_Order_Type=='1'?'danger':''">{{row.Sales_Order_Type=='1'?'赠品':'商品'}}</el-tag>
                  </template>
                </el-table-column>
                <el-table-column prop="Sales_Address" label="销售地址" min-width="100"></el-table-column>
                <el-table-column prop="Sign" label="有/无货主" min-width="100"></el-table-column>
                <el-table-column prop="Quantity" label="数量" min-width="100"></el-table-column>
                <el-table-column prop="Sales_Unit_Price" label="销售单价" min-width="100"></el-table-column>
                <el-table-column prop="Amount" label="总价" min-width="100"></el-table-column>
                <el-table-column prop="Sales_Message" label="用户备注" min-width="100">
                  <template v-slot="{ row }">
                    <span :style="row.Sales_Message?'color: red;':''">{{row.Sales_Message?row.Sales_Message:'暂无备注'}}</span>
                  </template>
                </el-table-column>
              </el-table>
            </template>
          </el-table-column>
          <el-table-column label="序号" width="50" type="index"></el-table-column>
          <el-table-column prop="Sales_Order_SerialNumber" min-width="150" label="订单流水号"></el-table-column>
          <el-table-column prop="Store_Name" show-overflow-tooltip effect="dark" label="销售点"
            min-width="100"></el-table-column>
          <el-table-column prop="Sales_Date" label="销售日期" min-width="180"></el-table-column>
          <el-table-column prop="Sales_Contacts" label="顾客名称" min-width="100"></el-table-column>
          <el-table-column prop="Sales_Phone" width="120" label="顾客电话" min-width="100"></el-table-column>
          <el-table-column prop="Sales_Address" label="销售地址" min-width="300" 
            style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;"></el-table-column>
          <el-table-column prop="Row_Status" label="销售详情" min-width="100">
            <template v-slot="{row}">
              <div v-if="row.Store_SerialNumber.charAt(0)=='E'"><!--用户下的单-->
                <el-tag v-if="row.Row_Status=='0'">未付款</el-tag>
                <el-tag type="success" v-else-if="row.total-row.refund != 0">已付款({{row.total-row.refund}})</el-tag>
                <el-tag type="danger" v-if="row.refund != 0">已退款({{row.refund}})</el-tag>
              </div>
              <div v-else-if="row.Store_SerialNumber.charAt(0)!='E'"><!--经销商下的单-->
                <el-tag type="primary" v-if="row.Row_Status=='10'">已对账</el-tag>
                <el-tag type="warning" v-else>未对账</el-tag>
              </div>
            </template>
          </el-table-column>
          <el-table-column prop="Sales_Date" label="下单日期" min-width="150"></el-table-column>
          <!-- <el-table-column prop="Collection_Date" label="付款日期" min-width="150">
            <template v-slot="{ row }">
              {{row.Row_Status=='1'?row.Collection_Date:''}}
            </template>
          </el-table-column> -->
          <el-table-column prop="Sales_Amount" label="消费总额" min-width="80"></el-table-column>
          <el-table-column prop="Collection_Amount" label="实收金额" min-width="80"></el-table-column>
        </el-table>
        <!-- 经销商身份 -->
        <el-table v-else @expand-change="handleChildren" :data="tableData" stripe border height="calc(100vh - 280px)" style="width: 100% ;">
          <el-table-column type="expand" label="明细" width="60">
            <template slot-scope="props">
              <el-table :data="props.row.Children.purchase_order_paystages" style="margin: 5px auto 0; width: 98%;"
                border>
                <el-table-column align="center" type="index" width="50" label="序号"></el-table-column>
                <el-table-column align="center" prop="Trading_Explain" label="账期说明"></el-table-column>
                <el-table-column align="center" prop="Trading_Detail_Name" label="账期类型"></el-table-column>
                <el-table-column align="center" prop="Trading_Percentage" label="额度/优惠">
                  <template v-slot="{row}">
                    {{row.Trading_Percentage+'%'}}
                  </template>
                </el-table-column>
                <el-table-column align="center" prop="Purchase_Amount" label="应收金额">
                  <template v-slot="{row}">
                    {{Pricethousands(row.Purchase_Amount)}}
                  </template>
                </el-table-column>
                <el-table-column align="center" prop="Paid_Amount" label="实收金额"></el-table-column>
                <el-table-column align="center" prop="Row_Status" label="状态">
                  <template v-slot="{row}">
                    <el-tag v-if="row.Row_Status=='0'">未付款</el-tag>
                    <el-tag v-if="row.Row_Status=='1'" type="success">已付款</el-tag>
                    <el-tag v-if="row.Row_Status=='2'" type="warning">退款审核</el-tag>
                    <el-tag v-if="row.Row_Status=='3'" type="danger">已退款</el-tag>
                  </template>
                </el-table-column>
                <el-table-column align="center" prop="Collection_Date" label="付款时间"></el-table-column>
                <el-table-column align="center" label="操作" width="180">
                  <template v-slot="{row}">
                    <el-button :loading="loading" :type="row.Row_Status==1?'success':'info'"
                      @click="handlePurchase(row,props.row)" size="small">退款申请</el-button>
                  </template>
                </el-table-column>
              </el-table>
            </template>
          </el-table-column>
          <el-table-column align="center" label="序号" width="50" type="index"></el-table-column>
          <el-table-column align="center" prop="Purchase_Order_SerialNumber" label="销售编号" width="180"></el-table-column>
          <el-table-column align="center" prop="Dealer_Name" label="经销商名称">
            <template v-slot="{row}">
              <div v-if="form.Order_Type=='1'" :title="row.Dealer_Name"
                style="width: 100%; overflow: hidden;white-space: nowrap; text-overflow: ellipsis;">
                <span>{{row.Dealer_Name}}</span>
              </div>
            </template>
          </el-table-column>
          <el-table-column align="center" prop="Purchase_Date" label="销售日期" width="180">
          </el-table-column>
          <el-table-column align="center" prop="Article_Name" label="商品名称"></el-table-column>
          <el-table-column prop="Specifications_Name" label="规格"></el-table-column>
          <el-table-column prop="Quantity" label="购买数量"></el-table-column>
          <el-table-column label="SKU数量">
            <template v-slot="{row}">
              {{Number(row.Quantity)*Number(row.Packing)}}
            </template>
          </el-table-column>
          <el-table-column v-if="JSON.parse(sessionStorage.getItem('RoleArr')).some(item=>item=='B0003')" align="center"
            label="商品金额">
            <template v-slot="{row}">
              {{Pricethousands(row.Article_UnitPrice)}}
            </template>
          </el-table-column>
          <el-table-column v-if="JSON.parse(sessionStorage.getItem('RoleArr')).some(item=>item=='B0003')" align="center"
            label="销售订单金额">
            <template v-slot="{row}">
              {{Pricethousands(row.Purchase_Amount)}}
            </template>
          </el-table-column>
          <el-table-column v-if="JSON.parse(sessionStorage.getItem('RoleArr')).some(item=>item=='B0003')" align="center"
            label="对方已付金额">
            <template v-slot="{row}">
              {{Pricethousands(row.Paid_Amount)}}
            </template>
          </el-table-column>
          <el-table-column v-if="JSON.parse(sessionStorage.getItem('RoleArr')).some(item=>item=='B0003')" align="center"
            prop="diffPrice" label="对方未付金额">
            <template v-slot="{row}">
              <span :style="`color: ${Number(row.Purchase_Amount)-Number(row.Confirm_Amount)==0?'#42b983':'#DC143C'};`">
                {{ Pricethousands(Number(row.Purchase_Amount) -Number(row.Confirm_Amount)) }}</span>
            </template>
          </el-table-column>
          <el-table-column v-if="JSON.parse(sessionStorage.getItem('RoleArr')).some(item=>item=='B0003')" align="center"
            prop="Confirm_Amount" label="确认金额">
            <template v-slot="{row}">
              {{Pricethousands(row.Confirm_Amount)}}
            </template>
          </el-table-column>
          <el-table-column align="center" label="物流单号">
            <template v-slot="{row}">
              <span>{{row.Logistics_Number}}</span>
            </template>
          </el-table-column>
          <el-table-column align="center" prop="Logistics_Date" label="发货日期"></el-table-column>
          <el-table-column align="center" prop="Row_Status" width="120" label="状态">
            <template v-slot="{row}">
              <div v-if="form.Order_Type=='1'">
                  <el-tag v-if="row.Row_Status=='0'&&row.Depot_Type!='2'">待对方付款</el-tag>
                  <el-tag v-if="row.Row_Status=='1'||row.Depot_Type=='2'&&row.Row_Status=='0'" type="success">待确认付款</el-tag>
                  <el-tag v-if="row.Row_Status=='2'" type="info">已过期</el-tag>
                  <el-tag v-if="row.Row_Status=='3'">待发货</el-tag>
                  <el-tag v-if="row.Row_Status=='4'" type="warning">已发货</el-tag>
                  <el-tag v-if="row.Row_Status=='5'" type="danger">已送达</el-tag>
                  <el-tag v-if="row.Row_Status=='6'" type="danger">结束</el-tag>
              </div>
            </template>
          </el-table-column>
          <el-table-column align="center" label="操作" width="180">
            <template v-slot="{row}">
              <!-- <el-button v-if="row.Depot_Type=='2'&&row.Row_Status=='0'"
                :loading="loading" @click="handlespecial(row)" type="success"
                size="small">发货</el-button> -->
              <!-- <el-button type="success" size="small" v-if="row.Independence=='1'&&row.Row_Status=='3'" 
                @click="PurchaseSupplier(row)">分配供应商</el-button> -->
              <!-- <el-button type="success" size="small" v-if="row.Independence=='1'&&row.Row_Status=='3'" 
                @click="handleDelivery(row)">发货</el-button>  -->
            
              <el-button v-if="row.Row_Status=='3'" 
                @click="handleManual(row)" :loading="loading" type="success" size="small">发货</el-button>
              
              <!-- 发货 -->
              <el-button v-if="row.Row_Status=='1'&&!row.Trading_Detail_SerialNumber.includes('T01000000000001_0')" 
                @click="handleDelivery(row)" :loading="loading" type="success" size="small">{{row.Independence=='1'?'分配供应商':'通知发货'}}</el-button>

              <!-- 确认收款按钮 -->
              <el-button v-if="row.Row_Status=='1'&&row.Trading_Detail_SerialNumber.includes('T01000000000001_0')
                ||row.Row_Status=='4'&&row.Trading_Detail_SerialNumber.includes('T01000000000002_0')
                ||row.Row_Status=='5'&&row.Trading_Detail_SerialNumber.includes('T01000000000003_0')
                ||row.Row_Status=='6'&&row.Trading_Detail_SerialNumber.includes('T01000000000004_0')"
                :loading="loading" @click="handleConfirm(row,
                row.Row_Status=='1'?'T01000000000001':
                row.Row_Status=='4'?'T01000000000002':
                row.Row_Status=='5'?'T01000000000003':'T01000000000004')" type="success" size="small">确认收款</el-button>
            </template>
          </el-table-column>
        </el-table>
        <el-pagination background v-show="total > 0" @size-change="handleSizeChange"
          @current-change="handleCurrentChange" :current-page="form.page" :page-sizes="[10,50,100,500,1000]"
          :page-size="form.limit" layout="total, sizes, prev, pager, next, jumper" :total="total">
        </el-pagination>
      </div>

      <!-- 填写物流明细 -->
      <el-dialog @close="qing_sales_order_logistics" width="80%" title="物流信息" :visible.sync="isdelivery">
        <el-form :model="sales_order_logistics" inline-message="true">
          <div class="table_titel">
            <div class="titel">物流明细 </div>
            <div>总数: {{delivery.Quantity}}</div>
            <el-checkbox v-model="checked" @change="SelfPickup">是否自提</el-checkbox>
            <div class="operation">
              <el-button type="primary" size="small" @click="add_sales_order_logistics">新增</el-button>
              <el-button type="danger" size="small" @click="remove_sales_order_logistics">删除</el-button>
            </div>
          </div>
          <el-descriptions :column="4" border size="small" v-for="(item,index) in sales_order_logistics" :key="index">
            <el-descriptions-item label="快递公司">
              <el-form-item>
                <el-select :disabled="item.disabled1" v-model.trim="item.LogisticsCode" placeholder="请选择快递公司" filterable
                  style="width: 100%">
                  <el-option v-for="(item,index) in expressCompany" :key="item.Logistics_Company_SerialNumber"
                    :label="item.Logistics_Company" :value="item.Logistics_Company_Code"></el-option>
                </el-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item label="物流单号">
              <el-form-item>
                <el-input :disabled="item.disabled1" v-model.trim="item.LogisticsNumbers"
                  placeholder="请输入物流单号"></el-input>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item label="数量">
              <el-form-item>
                <el-input v-model.trim="item.Quantity" type="NumBer" placeholder="请输入数量"></el-input>
              </el-form-item>
            </el-descriptions-item>
          </el-descriptions>
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button @click="isdelivery = false">取 消</el-button>
          <el-button type="primary" :loading="loading" @click="addOddNumbers">确 定</el-button>
        </div>
      </el-dialog>
      <!-- 订单分配 -->
      <el-dialog title="订单分配" width="50%" :visible.sync="dialogVisible2">
        <el-table :data="multipleSelection">
          <el-table-column label="序号" width="50" type="index"></el-table-column>
          <el-table-column :property="form.Order_Type=='0'?'Sales_Order_Detail_SerialNumber':'Purchase_Order_Detail_SerialNumber'" label="订单号"></el-table-column>
          <el-table-column prop="Article_Name" label="商品"></el-table-column>
          <el-table-column property="Quantity" label="数量"></el-table-column>
          <el-table-column label="分配供应商" type="index" width="180">
            <template v-slot="{row}">
              <el-select v-model="form3.Supplier_SerialNumber" placeholder="请选择供应商" @change="handleFilterSupplier($event,row)">
                <el-option v-for="(item,index) in supplier" :label="item.Supplier_Name"
                  :value="item.Supplier_SerialNumber"></el-option>
              </el-select>
            </template>
          </el-table-column>
        </el-table>
        <div slot="footer" class="dialog-footer">
          <el-button @click="dialogVisible2 = false">取消</el-button>
          <el-button type="primary" :loading="loading" @click="submitForm">提交</el-button>
        </div>
      </el-dialog>
    </div>
  </div>
  <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../js/utils.js"></script>
  <script type="text/javascript" src="../../../js/FileSaver.min.js"></script>
  <script type="text/javascript" src="../../../js/FileSaver.js"></script>
  <script type="text/javascript" src="../../../js/xlsx.full.min.js"></script>
  <script type="text/javascript" src="../../../config/request.js"></script>
  <script type="text/javascript" src="./js/SalesOrder1.js"></script>
</body>

</html>